function [T_order, T] = static_resid_tt(y, x, params, T_order, T)
if T_order >= 0
    return
end
T_order = 0;
if size(T, 1) < 10
    T = [T; NaN(10 - size(T, 1), 1)];
end
T(1) = (params(4)-1)*params(8)*y(1)/y(5);
T(2) = y(2)^(1-y(10));
T(3) = (y(10)-1)^2;
T(4) = T(2)*log(y(2))/(y(10)-1)+(T(2)-1)/T(3);
T(5) = y(2)^(-y(10));
T(6) = y(1)/y(3);
T(7) = y(3)^params(4);
T(8) = y(5)^(1-params(4));
T(9) = params(4)*y(3)^(params(4)-1);
T(10) = y(5)^(-params(4));
end
